<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="language" content="en" />
        <title>后台登录</title>
        <style>
            body {
                background: none repeat scroll 0 0 #EFEFEF;
                color: #555555;
                font: 12px "微软雅黑",Arial,Helvetica,sans-serif;
                margin: 0;
                padding: 0;
            }
            .form { 
                background: none repeat scroll 0 0 white;
                border: 1px solid #C9E0ED;
                margin-top: 5px;
                margin: 200px auto;
                width: 210px;
                padding: 20px 30px;
            }
            span.required { color: red; }
            .row { margin-bottom: 5px; }
            .errorMessage { padding: 2px; color: red; }
            table tr th { text-align: right; }
            .errorSummary { border: 2px solid #FFF; color: #CC0000; margin-bottom: 10px; background: #FFEEEE; }
            .errorSummary p { display: none;}
            input.error { border: 1px solid #CC0000; background: #FFEEEE; }
        </style>
    </head>
    <body>
        <div class="container">
            <div class="form">
                <?php
                $form = $this->beginWidget('CActiveForm', array(
                    'id' => 'login-form',
                    'enableClientValidation' => false,
                        ));
                ?>
                <?php echo $form->errorSummary($model); ?>
                <table>
                    <tr>
                        <th><?php echo $form->labelEx($model, 'username'); ?></th>
                        <td><?php echo $form->textField($model, 'username'); ?></td>
                    </tr>
                    <tr>
                        <th><?php echo $form->labelEx($model, 'password'); ?></th>
                        <td><?php echo $form->passwordField($model, 'password'); ?></td>
                    </tr>

                    <tr>
                        <th><?php echo $form->checkBox($model, 'rememberMe'); ?></th>
                        <td><?php echo $form->label($model, 'rememberMe'); ?></td>
                    </tr>
                    <tr>
                        <th></th>
                        <td><?php echo CHtml::submitButton('登录'); ?></td>
                    </tr>
                </table>
                <?php $this->endWidget(); ?>
            </div>
        </div>
    </body>
</html>